﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TCG.Engine.Core;
using TCG.Engine.Libraries;
using TCG.Engine.Impacts;

namespace TCG.Engine.Effects
{
    [Effect("inc_dmg")]
    public class IncreaseDamageEffect: EffectBase
    {
        public override void Move(MoveContext mc)
        {
            var ddImpacts = mc.Impacts.Where(i => i.Type == ImpactTypeInfo.DealDamage)
                .Where(i => i.Classes.Contains(CardClasses.Test.SimpleDD)).Select(i => (SimpleImpact)i);

            foreach (var i in ddImpacts)
                i.Value++;
        }

        public override void Apply(MoveContext mc)
        {
            mc.ActivePlayer.Effects.Add(this);
        }
    }
}
